/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.uhk.ppro.response.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * !!! UNUSED !!!
 *
 * @author Insidel
 *
 * Tato tabulka určuje vztah mezi žákem a testem.
 * "nějaký žák něco vyplnil"
 */

@Entity
@Table(name="COMPLETE_TESTS")
public class CompleteTest extends NamedEntity {
    // complete test, bude znat studenta, ktery jej vyplnil, odkaz na test


    @ManyToOne
    private Student student;


    @OneToOne(mappedBy = "completeTest")
    private Test test;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

}
